home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / compuserve-file-archive / 04 geoProgramming / GEORPG.TXT < prev    next >
Encoding:
Text File  |  2019-04-13  |  3.0 KB  |  99 lines

  1. PRGTOGEOS (Chapter 3) Corrections:
  2.  
  3. PRGTOGEOS utility described in chapter 3 does not work. With the following 
  4. corrections, you should have no problem with it.
  5.  
  6. On page 48, replace the "psect 400" with:
  7.  
  8.   .psect $304 ;The fileheader does not actually start at $304; this psect 
  9.   is necessary so that the fileheader occupies the first 252 bytes of the 
  10.   PRG file which your assembler creates.
  11.  
  12.   The comments below "FileHeader" should read:
  13.  
  14.   ;The first four bytes of the fileheader will be written to the header 
  15.   block by the PRGTOGEOS basic program during conversion. For your 
  16.   information, the first four bytes will contain: 
  17.  
  18.   ;     .byte $00,$ff   ;null pointer 
  19.                         ;to next block 
  20.   ;     .byte 3,21      ;icon width and 
  21.                         ;height
  22.  
  23.   Then these comments follow:
  24.  
  25.   ;The rest of the header will end up in bytes $04-$ff of the first block 
  26.   of the PRG file. When this file is converted, this first block will 
  27.   become the program's header block, and the header information from $04 to 
  28.   $ff in the block will already be in the correct place.
  29.   
  30.   The rest of the header from P48 follows fro    here, starting with the 
  31.   .byte ($80+63) line and ending with the .byte 0,0,0,0 line. Then replace 
  32.   everything on the page below that line with the following:
  33.  
  34.   ;the assembler should fill any free space in here with $00's, until the 
  35.   location counter equals $400.
  36.  
  37.   .psect $400    ;The code following this psect will be written into block 
  38.   2 of the PRG file.
  39.   
  40.   InitCode:
  41.         lda #21    ;here are two sample
  42.         sta r0L    ; lines. Change these.
  43.   
  44.   ;rest of application code goes here
  45.  
  46.   E    Code:   ;This label is use by the header block to store the ending 
  47.   address of the application code.
  48.  
  49.   THIS CONCLUDES the changes to page 48. The only other necessary changes 
  50.   are in the PRGTOGEOS basic program.
  51.  
  52.  
  53.  
  54. Now that we have corrected the header block on page 48, we need to change 
  55.   several lines of the PRGTOGEOS basic program which is listed on pages 
  56.   50-52. Replace the following lines with the lines listed below:
  57.  
  58.   80 input "hour       (ex: 14)";H
  59.  
  60.   180 T$=HT$:S$=HS$:gosub 1000
  61.  
  62.   210 f     I=2 to 68
  63.  
  64.   310 for I=0 to (32*E)+2
  65.  
  66.   DELETE LINE 240 (240 get#2,ct$)
  67.  
  68.   MAKE SURE LINE 3050 READS: 3050 for I=I to 31
  69.  
  70.  
  71.  
  72. P222 Corrections
  73.  
  74.   The DBGETFILES equate described on P222 in the GEOS REF MAN should have a 
  75.   value of 16, not 15 as it appears in the manual. See P405 for 
  76.   confirmation. 
  77.  
  78.  
  79.  
  80. P412 Corrections
  81.  
  82.   The Jump address for the print drivers are a little messed up.  Change 
  83.   the addresses as follows:
  84.  
  85.   GetDimentions  =  PRINTBASE+12   ; $790C address of GetDimentions
  86.   PrintASCII          PRINTBASE+15   ; $790F address of PrintASCII entry
  87.   StartASCII     =  PRINTBASE+18   ; $7912 address of StartASCII entry
  88.   SetNLQ         =  PRINTBASE+21   ; $7915 address of SetNLQ entry
  89.  
  90.   The addresses for spicific sprite picture data has a similar error:
  91.  
  92.   spr3pic        =  spr2pic        ; $8AC0 addr. of sprite pic. data
  93.  
  94.  
  95.  
  96. P432 Corrections
  97.  
  98.   DoneWithIO should read $c25f CopyString should read $c265
  99.